package com.qn.visitor.analyze.filter.strategy;
/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */
public interface IAnalyzeFilter {
    /**
     * 过滤
     * @param hash IP哈希吗
     * @return 是否注册
     * @throws Exception 异常
     */
    boolean filter(String hash) throws Exception;

    /**
     * 写入布隆过滤器
     * @param hash IP哈希吗
     * @throws Exception 异常
     */
    void add(String hash) throws Exception;
}
